import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { NarsComponent } from './nars.component';

const routes: Routes = [{ path: '', component: NarsComponent,children:[
  { path: '', pathMatch: 'full', redirectTo: 'Names' },
  { path: 'Names', loadChildren: () => import('./modules/names/names.module').then(m => m.NamesModule) },
] }

];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class NarsRoutingModule { }
